def fibonacci():
    fib_list=[0,1]
    while True:
        new_fib = fib_list[-1]+fib_list[-2]
        if new_fib >50:
            break
        fib_list.append(new_fib)
    return fib_list
print(fibonacci())